package com.quick.platform.modules.customer.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 客户信息表单对象
 *
 * @author yangyl
 * @since 2025-04-18 10:03
 */
@Getter
@Setter
@Schema(description = "客户信息表单对象")
public class CustomerForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "客户编码")
    @NotBlank(message = "客户编码不能为空")
    @Size(max=20, message="客户编码长度不能超过20个字符")
    private String customerCode;

    @Schema(description = "客户名称")
    @NotBlank(message = "客户名称不能为空")
    @Size(max=100, message="客户名称长度不能超过100个字符")
    private String customerName;

    @Schema(description = "联系人")
    @NotBlank(message = "联系人不能为空")
    @Size(max=50, message="联系人长度不能超过50个字符")
    private String contactPerson;

    @Schema(description = "联系电话")
    @NotBlank(message = "联系电话不能为空")
    @Size(max=20, message="联系电话长度不能超过20个字符")
    private String contactPhone;

    @Schema(description = "客户类型")
    @NotBlank(message = "客户类型不能为空")
    private String customerType;

    @Schema(description = "信用等级")
    private String creditRating;

    @Schema(description = "地址")
    @Size(max=255, message="地址长度不能超过255个字符")
    private String address;

    @Schema(description = "状态")
    private Integer status;


}
